<div class="modal-dialog modal-sm">
    <form id="infoFrom" class="form-horizontal" data-toggle="validator">
        <input type="hidden" name="memberId" value="${memberId!}">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                <h4 class="modal-title">余额充值</h4>
            </div>
            <div class="modal-body">
                <div class="container">
                    <div class="row">
                        <div class="form-group">
                            <input type="number" required name="memberBalance" placeholder="请输入充值金额(负数即为扣除余额)" class="form-control">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">确定</button>
        </div>
    </form>
</div>
<script>
    $("#infoFrom").validate({
        submitHandler: function (form) {
            $(form).ajaxSubmit({
                type: 'POST',
                url: '/admin/member/saveMemberBalance',
                success: function (data) {
                    successTip(data, null, dlg);
                    setTimeout("location.reload()", 1000);
                }
            });
        }
    });
</script>